package com.leesche.netdoll.communication.event;

import com.leesche.framework.core.lang.StringUtil;

public class SessionChangedEvent implements MessageEvent {

	private String deviceId;
	private String gameId;

	private SessionStatus status;

	public SessionChangedEvent(String deviceId, SessionStatus status) {
		this(deviceId, StringUtil.EMPTY, status);
	}

	public SessionChangedEvent(String deviceId, String gameId, SessionStatus status) {
		this.deviceId = deviceId;
		this.gameId = gameId;
		this.status = status;
	}

	@Override
	public String deviceId() {
		return deviceId;
	}

	@Override
	public String gameId() {
		return gameId;
	}

	public SessionStatus getStatus() {
		return status;
	}

	public void setStatus(SessionStatus status) {
		this.status = status;
	}

	public enum SessionStatus {
		Alive, Dead;
	}
}
